package com.example.provider3.web;

import com.example.common.RestService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <b>TODO . </b>
 *
 * @author yangyl11
 * @version 1.0.0
 * @date 2021/5/17
 * @since JDK 1.8
 */
@RestController
public class TestController implements RestService {

	@Value("${server.port}")
	private Integer port;

	@PostMapping("/testRest")
	@Override
	public String testRest(@RequestParam String test) {

		return "test rest @" + port + " : " + test;
	}
}
